package com.xm.settlement.model.form;

import net.sf.json.JSONObject;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/4/1.
 */
public class UserTree implements Serializable {

    private static final long serialVersionUID = 1L;

    private String name ;

    private String phone;

    private String vip_code;

    private String value;

    private JSONObject itemStyle  ;

    private List<UserTree> children;

    private  Integer symbolSize = 60;

    private Integer symbolRotate = 90;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public JSONObject getItemStyle() {
        itemStyle = new JSONObject();
        JSONObject normal = new JSONObject();
        JSONObject label = new JSONObject();
        label.put("show",true);
        label.put("position","bottom");
        normal.put("label",label);
        itemStyle.put("normal",normal);
        return itemStyle;
    }

    public void setItemStyle(JSONObject itemStyle) {
        this.itemStyle = itemStyle;
    }

    public List<UserTree> getChildren() {
        if(children == null ){ children = new ArrayList<>();}
        return children;
    }

    public void setChildren(List<UserTree> children) {
        this.children = children;
    }

    public Integer getSymbolSize() {
        return symbolSize;
    }

    public void setSymbolSize(Integer symbolSize) {
        this.symbolSize = symbolSize;
    }

    public Integer getSymbolRotate() {
        return symbolRotate;
    }

    public void setSymbolRotate(Integer symbolRotate) {
        this.symbolRotate = symbolRotate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getVip_code() {
        return vip_code;
    }

    public void setVip_code(String vip_code) {
        this.vip_code = vip_code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
